package com.rui.cn.entity.system;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 用户角色
 * </p>
 *
 * @author zhang123
 * @since 2018-01-15
 */
@TableName("sys_role_permission")
public class SysRolePermission extends Model<SysRolePermission> implements Serializable{

    private static final long serialVersionUID = 1L;

    private Integer roleid;
    /**
     * 权限id
     */
    private Integer pid;
    public SysRolePermission(){}
    public SysRolePermission(Integer roleid,Integer pid){
        this.roleid=roleid;
        this.pid=pid;
    }

    public Integer getRoleid() {
        return roleid;
    }

    public void setRoleid(Integer roleid) {
        this.roleid = roleid;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    @Override
    protected Serializable pkVal() {
        return this.roleid;
    }

    @Override
    public String toString() {
        return "SysRolePermission{" +
        "roleid=" + roleid +
        ", pid=" + pid +
        "}";
    }
}
